package framework.util;
import java.io.Serializable;


public class Node implements Serializable{

	protected final String name;
	protected final String path;
	
	public Node(String name, String path) {
		super();
		this.name = name;
		this.path = path;
	}
	
	
	public String getPath() {
		return path;
	}
	
	
	public String getName() {
		return name;
	}
	
	
	@Override
	public boolean equals(Object arg0) {
		if (arg0 instanceof Node) {
			Node other = (Node) arg0;
			return this.name.equals(other.name);
		}
		return false;
	}
	@Override
	public int hashCode() {
		int hash = 7;
		hash = 31 * hash + this.name.hashCode();
		return hash;
	}
	@Override
	public String toString() {
		return this.name+"["+this.path+"]";
	}
	
	
}
